import http from "../utils/request"


// 获取小说分类
export function getBookType(data) {
	return http.request({
		url: '/common/getBookType',
		method: 'post',
		data
	})
}

// 检查版本更新
export function verionUpdate(header) {
	return http.request({
		url: '/versionUpdate',
		method: 'post',
		header
	})
}


// 发送验证码
export function sendMailCode(data) {
	return http.request({
		url: '/common/sendMailCode',
		method: 'post',
		data
	})
}

// 验证验证码
export function checkMailCode(data) {
	return http.request({
		url: '/common/checkMailCode',
		method: 'post',
		data
	})
}

// 获取下载地址
export function getDownloadLink() {
	return http.request({
		url:'/getDownloadUrl',
		method:'post'
	})
}
